/* 定义土地管理系统的主题颜色 */
:root {
  --land-primary: #2c8e69;
  --land-primary-light: #4caf8f;
  --land-primary-dark: #1b5e41;
  --land-secondary: #8d6e63;
  --land-accent: #ffd54f;
  --land-background: #f5f7fa;
  --land-card-bg: #ffffff;
  --land-text: #333333;
  --land-text-light: #666666;
  --land-border: #e0e0e0;
  --land-success: #4caf50;
  --land-warning: #ff9800;
  --land-danger: #f44336;
  --land-info: #2196f3;
}

/* 侧边栏样式优化 */
.el-menu-vertical:not(.el-menu--collapse) {
  width: 220px;
  min-height: 100vh;
  border-right: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
}

.el-menu--collapse {
  width: 64px;
  border-right: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 菜单项样式优化 */
.el-menu-item,
.el-sub-menu__title {
  height: 50px;
  line-height: 50px;
  transition: all 0.3s ease;
}

.el-menu-item:hover,
.el-sub-menu__title:hover {
  background-color: var(--land-primary-light) !important;
  color: white !important;
}

.el-menu-item.is-active {
  background-color: var(--land-primary-dark) !important;
  color: var(--land-accent) !important;
  border-right: 3px solid var(--land-accent);
}

/* 主内容区样式 */
.el-main {
  padding: 0;
  position: relative;
  background-color: var(--land-background);
  transition: all 0.3s ease;
}

/* 地图容器样式优化 */
.map-container {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  background-image: url('@/assets/land-background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

/* 顶部导航栏样式优化 */
.el-header {
  padding: 0 20px;
  height: 60px !important;
  background: linear-gradient(to right, #2c8e69, #1b5e41);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.header-title {
  display: flex;
  align-items: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.header-icon {
  margin-right: 10px;
  font-size: 24px;
  color: var(--land-accent);
}

.header-actions {
  display: flex;
  align-items: center;
}

.logout-button {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 8px 15px;
}

.logout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 绘制工具栏样式优化 */
.drawing-toolbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.drawing-toolbar:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* 属性表单样式优化 */
.attribute-form {
  padding: 25px;
}

.el-form-item {
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.el-form-item:hover {
  transform: translateX(5px);
}

.el-input,
.el-select,
.el-date-picker {
  transition: all 0.3s ease;
}

.el-input:hover,
.el-select:hover,
.el-date-picker:hover {
  box-shadow: 0 0 8px rgba(76, 175, 143, 0.3);
}

.el-drawer__header {
  margin-bottom: 0;
  padding: 15px 20px;
  background: linear-gradient(to right, #2c8e69, #1b5e41);
  color: white;
  font-weight: bold;
  border-bottom: 1px solid var(--land-border);
}

.el-drawer__body {
  padding: 0;
  background-color: var(--land-card-bg);
}

/* 表单操作按钮样式 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--land-border);
}

.form-actions .el-button {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 10px 20px;
  min-width: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-button {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.form-actions .el-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 按钮样式优化 */
.el-button--primary {
  background-color: #674ef5;
  border-color: #fbfbfb;
  color: white;
}

.el-button--primary:hover,
.el-button--primary:focus {
  background-color: #0f88a9;
  border-color: #f55a4e;
  color: white;
}

.el-button--danger {
  background-color: #f55a4e;
  border-color: #f55a4e;
  color: white;
}

.el-button--danger:hover,
.el-button--danger:focus {
  background-color: #15e37c;
  border-color: #f55a4e;
  color: white;
}

/* 添加响应式设计 */
@media screen and (max-width: 768px) {
  .el-menu-vertical:not(.el-menu--collapse) {
    width: 180px;
  }

  .el-drawer.rtl {
    width: 80% !important;
  }
}
